﻿Imports DTO
Imports DAO
Public Class HoaDonBUS
    Dim _hdDAO As New HoaDonDAO()
    Public Sub CapNhatNhanVienTrucVaoHoaDonDAO(ByVal _hoaDonDTO As HoaDonDTO)
        _hdDAO.CapNhatNhanVienTrucVaoHoaDonDAO(_hoaDonDTO)
    End Sub

    Public Function LayMaHDBanDangSuDungBUS(ByVal _hoaDonDTO As HoaDonDTO) As Integer
        Return _hdDAO.LayMaHDBanDangSuDungDAO(_hoaDonDTO)
    End Function

    Public Function LayThongTinHDBUS(ByVal _maHD As Integer) As HoaDonDTO
        Return _hdDAO.LayThongTinHDDAO(_maHD)
    End Function

    Public Function TongTienHDDAO(ByVal _maHD As Integer) As Double
        Return _hdDAO.TongTienHDDAO(_maHD)
    End Function

    Public Sub ThanhToanTienHoaDonBUS(ByVal _hdDTO As HoaDonDTO)
        _hdDAO.ThanhToanTienHoaDonDAO(_hdDTO)
    End Sub
End Class
